import { useState } from 'react'

interface User {
  name: string;
  age: number;
}

const StateComp = () => {
  const [user, setUser] = useState<User | null>(null)

  const [student, setStudent] = useState<User>({} as User)
  return <div>StateComp</div>
}

export default StateComp